package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ErpInventoryTransferDetailMapper;
import com.ruoyi.domain.ErpInventoryTransferDetail;
import com.ruoyi.service.IErpInventoryTransferDetailService;

/**
 * 调拨明细管理Service业务层处理
 * 
 * @author zhp
 * @date 2025-08-08
 */
@Service
public class ErpInventoryTransferDetailServiceImpl implements IErpInventoryTransferDetailService 
{
    @Autowired
    private ErpInventoryTransferDetailMapper erpInventoryTransferDetailMapper;

    /**
     * 查询调拨明细管理
     * 
     * @param id 调拨明细管理主键
     * @return 调拨明细管理
     */
    @Override
    public ErpInventoryTransferDetail selectErpInventoryTransferDetailById(Long id)
    {
        return erpInventoryTransferDetailMapper.selectErpInventoryTransferDetailById(id);
    }

    /**
     * 查询调拨明细管理列表
     * 
     * @param erpInventoryTransferDetail 调拨明细管理
     * @return 调拨明细管理
     */
    @Override
    public List<ErpInventoryTransferDetail> selectErpInventoryTransferDetailList(ErpInventoryTransferDetail erpInventoryTransferDetail)
    {
        return erpInventoryTransferDetailMapper.selectErpInventoryTransferDetailList(erpInventoryTransferDetail);
    }

    /**
     * 新增调拨明细管理
     * 
     * @param erpInventoryTransferDetail 调拨明细管理
     * @return 结果
     */
    @Override
    public int insertErpInventoryTransferDetail(ErpInventoryTransferDetail erpInventoryTransferDetail)
    {
        return erpInventoryTransferDetailMapper.insertErpInventoryTransferDetail(erpInventoryTransferDetail);
    }

    /**
     * 修改调拨明细管理
     * 
     * @param erpInventoryTransferDetail 调拨明细管理
     * @return 结果
     */
    @Override
    public int updateErpInventoryTransferDetail(ErpInventoryTransferDetail erpInventoryTransferDetail)
    {
        return erpInventoryTransferDetailMapper.updateErpInventoryTransferDetail(erpInventoryTransferDetail);
    }

    /**
     * 批量删除调拨明细管理
     * 
     * @param ids 需要删除的调拨明细管理主键
     * @return 结果
     */
    @Override
    public int deleteErpInventoryTransferDetailByIds(Long[] ids)
    {
        return erpInventoryTransferDetailMapper.deleteErpInventoryTransferDetailByIds(ids);
    }

    /**
     * 删除调拨明细管理信息
     * 
     * @param id 调拨明细管理主键
     * @return 结果
     */
    @Override
    public int deleteErpInventoryTransferDetailById(Long id)
    {
        return erpInventoryTransferDetailMapper.deleteErpInventoryTransferDetailById(id);
    }
}
